package com.qk.mapper;

import com.qk.entity.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseMapper {
    List<Course> listCourses(Course course);

    void deleteById(Integer id);

    void addCourse(Course course);

    Course getCourseById(Integer id);

    void updateCourse(Course course);

    List<Course> getAllCourses();

    List<Course> listCoursesBySubject(Integer subject);
}
